package com.kaifamiao.N0729;

public class Pet {
    public void toHospital() {
        System.out.println("宠物看病");
    }

    public void eat() {
    }
}

class Dog extends Pet {
    public void toHospital() {
        System.out.println("狗狗看病");
    }

    public void catchingFlyDisc() {
        System.out.println("玩飞盘");
    }
}

class Bird extends Pet {
    public void toHospital() {
        System.out.println("小鸟看病");
    }
    public void fly(){
        System.out.println("飞翔");
    }
}

